import axios from "./index";
export async function getNotice(): Promise<{
  content: string;
  createTime: string;
}> {
  let { data } = await axios.get(`/notice`);
  return data.data;
}

export async function addNotice(value: string): Promise<string> {
  let { data } = await axios.post(`/notice`, {
    content: value,
  });
  return data.data;
}
